<template>
  <div class="body" style="margin-top:39px">
    <!--<bpm-c-navbar title="历史1"-->
                  <!--:showLeft="true"/>-->
    <div class="head1 jlayoutCenter">{{bpmcoreI18n.history}}</div>
    <bpm-d-hishead v-show="currStatusShow"/>
    <bpm-d-hislist />
  </div>
</template>

<script>
import {mapState, mapActions} from 'vuex'

export default {
  name: 'MainScene',
  data () {
    return {
      isDialogVisible: false
    }
  },
  computed: {
    ...mapState(['bpmcoreI18n', 'currStatus', 'inst']),
    currStatusShow: function () {
      if (this.currStatus && this.currStatus.length > 0) {
        return true
      }
      return false
    }
  },
  mounted () {
    // 调用历史接口,改为在loadresourc后异步调用
    // if (!this.inst.id) { return }
    // this.retrieveTaskDones({me: this})
  },
  methods: {
    ...mapActions(['retrieveTaskDones'])
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .body {
    display: flex;
    flex-direction: column;
    font-size: 12px;
  }
  .head1 {
    background: url(/static/images/contentBg.png) repeat-x 0 -337px;
    color: #475d68;
    font-size: 14px;
    font-weight: bold;
    width: 980px;
    height: 26px;
    line-height: 26px;
  }
</style>
